#include <stdio.h>
#include <math.h>

int main(int argc, char *argv[]) {

    double x, y, r;
    scanf("%lf %lf", &x, &y);
    //x轴和y轴绝对值分别小于4.5
    if(fabs(x)<=4.5&&fabs(y)<=4.5){
        //计算点到圆心的距离
        r = sqrt(x * x + y * y);
        if(r<4.5)
        {
            printf("in");
        }else if (r==4.5)
        {
            printf("on");
        }else if (r>4.5)
        {
            printf("out");
        }
    }else{
        printf("out");
    }

    return 0;
}